/**
 * create by young (young2f@outlook.com) on 2023/4/16
 */
'use strict';
module.exports = app => {
    const {router, controller} = app;
    router.post('/api/dic/create', controller.dic.createDict);
    router.post('/api/dic/update', controller.dic.updateDict);
    router.post('/api/dic/delete', controller.dic.deleteDict);
    router.post('/api/dic/find/many', controller.dic.findDicts);

    router.post('/api/dic/pic/create', controller.dic.createPicDict);
    router.post('/api/dic/pic/update', controller.dic.updatePicDict);
    router.post('/api/dic/pic/find/many', controller.dic.findPicDicts);
    router.post('/api/dic/file/find/many', controller.dic.findFileMany);
    router.post('/api/dic/file/upload', controller.dic.uploadFile);
    router.post('/api/dic/file/delete', controller.dic.deleteFile);
};
